﻿using B.S.BasicData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BasicData.Infrastructure.Interface
{

    /// <summary>
    /// 仓储接口
    /// </summary>
    public interface IBaseRepository<T> where T : BaseEntity
    {
        //增
        public int Create(T t);
        //改
        public int Update(T t);

        //查单个实体
        public T GetModel(long id);

        //返回查询表达式
        public IQueryable<T> GetAll();
    }
}
